home *** CD-ROM | disk | FTP | other *** search
/ Die Speccy' 97 / Die Speccy' 97.iso / amiga_system / the_aminet / comm / tcp / cp5.lha / cp5 / installcp5 < prev    next >
Text File  |  1995-09-08  |  4KB  |  205 lines

  1. ;Installer V2 For AmiTCP Control Panel V5.2
  2. ;
  3. ;⌐Martin Hunt 1995
  4. ;
  5. ;
  6.  
  7.  
  8. (set amitcpdir
  9.    (askdir
  10.        (prompt "Where is AmiTCP installed?")
  11.        (help @askdir-help)
  12.        (default "dh1:amitcp")
  13.    )
  14. )
  15. (set @default-dest amitcpdir)
  16. (makeassign "amitcp" amitcpdir
  17.  (safe)
  18. )
  19.  
  20. (set cp5dest
  21.    (askdir
  22.        (prompt "Where do you want Control Panel 5 to be installed?")
  23.        (help @askdir-help)
  24.        (default "sys:wbstartup")
  25.    )
  26. )
  27.  
  28. (copyfiles
  29.    (prompt "Copying AmiTCP Control Panel to " @default-dest )
  30.    (help @copyfiles-help)
  31.    (source "ControlPanel5")
  32.    (dest cp5dest)
  33.    (infos)
  34.    (confirm)
  35. )
  36. (copyfiles
  37.    (prompt "Copying AmiTCP Control Panel to " @default-dest )
  38.    (help @copyfiles-help)
  39.    (source "cp5.exe")
  40.    (dest "c:")
  41.    (confirm)
  42. )
  43.  
  44. (set cp5
  45.    (askdir
  46.        (prompt "Where do you want CP5's scripts to be installed?")
  47.        (help @askdir-help)
  48.        (default "amitcp:cp")
  49.    )
  50. )
  51.  
  52. (makeassign "CP" cp5
  53.   (safe)
  54. )
  55.  
  56. (copyfiles
  57.  (prompt "Copying AmiTCP Control Panel Scripts and Commands to "cp5)
  58.    (help @copyfiles-help)
  59.    (source "bin")
  60.    (all)
  61.    (dest cp5)
  62.    (infos)
  63.    (confirm)
  64. )
  65.  
  66. (set amitcpdocs
  67.    (askdir
  68.        (prompt "Where do you want the docs to be stored?")
  69.        (help @askdir-help)
  70.        (default "amitcp:docs")
  71.    )
  72. )
  73.  
  74. (copyfiles
  75.  (prompt "Copying AmiTCP Control Panel Docs to "amitcpdocs)
  76.    (help @copyfiles-help)
  77.    (source "docs")
  78.    (all)
  79.    (dest amitcpdocs)
  80.    (infos)
  81.    (confirm)
  82. )
  83.  
  84. (makedir "cp:prefs"
  85.   (prompt)
  86.   (infos)
  87.   (safe)
  88. )
  89.  
  90. (Copyfiles
  91. (prompt "Copying AmiTCP Control Panel Default Prefs to "cp5"/prefs")
  92.    (help @copyfiles-help)
  93.    (source "prefs")
  94.    (all)
  95.    (dest "cp:prefs")
  96.    (infos)
  97.    (confirm)
  98. )
  99.  
  100. (set ConnectType
  101. (askchoice
  102.   (prompt "Select which type of connection software you are using")
  103.   (help @askchoice-help)
  104.   (choices "Standard AmiTCP Startnet/Stopnet"
  105.            "Demon Internet Startnet/Stopnet/Link"
  106.            "Amiconnect"
  107.   )
  108. )
  109. )
  110.  
  111. (if  (= connecttype 0)
  112.      (Copyfiles
  113.        (prompt "Copying AmiTCP Control Panel Main Prefs to s:cp.config")
  114.        (help @copyfiles-help)
  115.        (source "s/cp.config.std")
  116.        (dest "s:")
  117.        (confirm)
  118.        (newname "cp.config")
  119.      )
  120.      (if (= connecttype 1)
  121.          (Copyfiles
  122.             (prompt "Copying AmiTCP Control Panel Main Prefs to s:cp.config")
  123.             (help @copyfiles-help)
  124.             (source "s/cp.config.demon")
  125.             (dest "s:")
  126.             (confirm)
  127.             (newname "cp.config")
  128.          )
  129.          (Copyfiles
  130.             (prompt "Copying AmiTCP Control Panel Main Prefs to s:cp.config")
  131.             (help @copyfiles-help)
  132.             (source "s/cp.config.amiconnect")
  133.             (dest "s:")
  134.             (confirm)
  135.             (newname "cp.config")
  136.          )
  137.      )
  138. )
  139.  
  140. (copylib
  141.    (prompt "Copying Apig.Library to Libs:" )
  142.    (help @copyfiles-help)
  143.    (source "Libs/apig.library")
  144.    (dest "Libs:")
  145.    (infos)
  146.    (confirm)
  147. )
  148.  
  149. (set line1 ("Assign Amitcp: %s \n" amitcpdir))
  150. (set line15 ("Assign Inet: %s \n" amitcpdir))
  151. (set line2 ("Assign Cp: %s \n" cp5))
  152. (set line3 ("path amitcp:bin add \n"))
  153. (set line4 ("path cp: add \n"))
  154.  
  155. (startup "CP5"
  156.    (prompt "Adding assigns and paths to s:user-startup")
  157.    (help @startup-help)
  158.    (command line1)
  159.    (command line15)
  160.    (command line2)
  161.    (command line3)
  162.    (command line4)
  163. )
  164.  
  165. (run "cp:controlpanelprefs main"
  166.    (prompt "Starting Main Preference Editor" )
  167.    (help "FRED")
  168.    (confirm)
  169.    (safe)
  170. )
  171.  
  172. (run "cp:controlpanelprefs programs"
  173.    (prompt "Starting Program Preference Editor" )
  174.    (help "FRED")
  175.    (confirm)
  176.    (safe)
  177. )
  178.  
  179. (run "cp:controlpanelprefs options"
  180.    (prompt "Starting Options Preference Editor" )
  181.    (help "FRED")
  182.    (confirm)
  183.    (safe)
  184. )
  185.  
  186. (run "cp:controlpanelprefs Edit"
  187.    (prompt "Starting EditFile Preference Editor" )
  188.    (help "FRED")
  189.    (confirm)
  190.    (safe)
  191. )
  192.  
  193. (run "cp:controlpanelprefs POPS"
  194.    (prompt "Starting PoP Preference Editor" )
  195.    (help "FRED")
  196.    (confirm)
  197.    (safe)
  198. )
  199.  
  200. (run "cp:changeuser.exe"
  201.    (prompt "Starting User Editor" )
  202.    (help "RTFM!")
  203.    (CONFIRM)
  204. )
  205.